<template>
    <div class="group_text">
        <el-form :model="groupForm" ref="groupForm" label-width="100px" class="demo-ruleForm">
            <div v-for="(item,index) in groupForm.groupList" :key="index">
                <el-form-item :label="`组${index+1}`" prop="desc" label-width="150px"></el-form-item>
                <el-form-item label="标题" prop="group">
                    <el-input type="text" v-model="item.group" autocomplete="off" maxlength="10" show-word-limit></el-input>
                </el-form-item>
                <el-form-item label="内容" prop="desc">
                    <el-input type="text" v-model="item.desc" autocomplete="off"  maxlength="10" show-word-limit></el-input>
                </el-form-item>
            </div>
        </el-form>
    </div>
</template>
<script>
/**
* description: 分组文本模块
*/
export default {
    data() {
        return {
            groupForm: {
                groupList: [
                    {group:'11',desc:'11',},
                    {group:'22',desc:'22',},
                    {group:'11',desc:'11',},
                    {group:'22',desc:'22',},
                    {group:'11',desc:'11',},
                ]
            }
        }
    },
    methods: {
        submit() {
            return { formData: this.groupForm.groupList}
        }
    }
}
</script>
<style lang="scss" scoped>
.group_text{
    padding-bottom: 100px;
}
</style>